package models

import (
	"time"
)

type Queuedemail struct {
	Id int64 `xorm:"oid"`

	Priorityid         int       `json:"PriorityId" xorm:"not null INTEGER"`
	From               string    `json:"From" xorm:"not null VARCHAR(500)"`
	Fromname           string    `json:"FromName" xorm:"VARCHAR(500)"`
	To                 string    `json:"To" xorm:"not null VARCHAR(500)"`
	Toname             string    `json:"ToName" xorm:"VARCHAR(500)"`
	Replyto            string    `json:"ReplyTo" xorm:"VARCHAR(500)"`
	Replytoname        string    `json:"ReplyToName" xorm:"VARCHAR(500)"`
	Cc                 string    `json:"CC" xorm:"VARCHAR(500)"`
	Bcc                string    `json:"Bcc" xorm:"VARCHAR(500)"`
	Subject            string    `json:"Subject" xorm:"VARCHAR(1000)"`
	Body               string    `json:"Body" xorm:"VARCHAR"`
	Attachmentfilepath string    `json:"AttachmentFilePath" xorm:"VARCHAR"`
	Attachmentfilename string    `json:"AttachmentFileName" xorm:"VARCHAR"`
	Attacheddownloadid int       `json:"AttachedDownloadId" xorm:"not null INTEGER"`
	Createdonutc       time.Time `json:"CreatedOnUtc" xorm:"not null DATETIME"`
	Senttries          int       `json:"SentTries" xorm:"not null INTEGER"`
	Sentonutc          time.Time `json:"SentOnUtc" xorm:"DATETIME"`
	Emailaccountid     int       `json:"EmailAccountId" xorm:"not null INTEGER"`
}
